package com.key.win.business.chat.eums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.key.win.base.enumjson.TextureEnumSerializerCode;

// [好友消息、管理员消息]、[系统消息、好友申请消息、...]、[群消息、@消息、管理员消息]
@JsonSerialize(using = TextureEnumSerializerCode.class)
public enum ImMessageTypeEnum {
    FRIEND_NORMAL(10, "好友消息"),
    FRIEND_ADMIN(11, "管理员消息"),
    GROUP_NORMAL(20, "群消息"),
    GROUP_ADMIN(21, "管理员消息"),
    GROUP_AT(22, "群@消息"),
    SYSTEM_APPLY_FRIEND(30, "好友申请"),
    SYSTEM_APPLY_GROUP(31, "群组申请消息"),
    SYSTEM(32, "系统消息");
    @EnumValue
    private int code;
    private String text;

    private ImMessageTypeEnum(int code, String text) {
        this.code = code;
        this.text = text;
    }


    public int getCode() {
        return code;
    }

    public String getText() {
        return text;
    }
}
